package com.training.java.corejava.equals;

public class CarEqualsDemo {

	public static void main(String[] args) {
		Car car1= new Car("v123","Toyota","corolla");
		Car car2 = new Car("v123","Toyota","corolla");
		
		car1.setColor("black");
		car2.setColor("silver");
		
		System.out.println("car1 and car2 are equal? "+ car2.equals(car1));
		
		System.out.println("Car1 vin Number: "+ car1.getVinNumber());
		
		System.out.println("Car2 vin Number: "+ car2.getVinNumber());
		
	}

}
